package com.sphd.beautysalon.adapters;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.sphd.beautysalon.R;
import com.sphd.beautysalon.info.RecordTopUpInfo;

import java.util.List;

/**
 * Created by Hu on 2016/12/7.
 */

public class VipAddMoneyAdapter extends BaseQuickAdapter<RecordTopUpInfo> {
    public VipAddMoneyAdapter(int layoutResId, List<RecordTopUpInfo> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder baseViewHolder, RecordTopUpInfo recordTopUpInfo) {
        baseViewHolder
                .setText(R.id.title,"充值金额"+recordTopUpInfo.getTopup_money()+"元")
                .setText(R.id.time,recordTopUpInfo.getRegtime());
    }
}
